/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.japo.java.swing.listeners;

import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import org.japo.java.swing.igu.IGU;

/**
 *
 * @author CicloM
 */
public class GER implements MouseMotionListener {

    //Referencia al igu
    private final IGU igu;

    //Constructor
    public GER(IGU igu) {
        this.igu = igu;
    }

    @Override
    public void mouseDragged(MouseEvent e) {
    }

    @Override
    public void mouseMoved(MouseEvent e) {
        //Obtener la X y la Y preguntandole al evento
        igu.perseguirRaton(e.getX(), e.getY());
    }
}
